package com.xu.lambda;


import com.xu.service.UserService;

/**
 *
 * @author xudenghui
 * @create 2023-04-05 13:46
 **/
public class Demo3 {
    public void user(UserService userService){
        userService.show();
    }

    public static void main(String[] args) {
        Demo3 demo3 = new Demo3();
        demo3.user(new UserService() {
            @Override
            public void show() {
                System.out.println("匿名内部内实现");
            }
        });

    }




}
